﻿@page "/datetimeranges"
@inject IStringLocalizer<DateTimeRanges> Localizer

<h3>@Localizer["Title"]</h3>

<h4>@Localizer["Description"]</h4>

<DemoBlock Title="@Localizer["NormalTitle"]" Introduction="@Localizer["NormalIntro"]" Name="Normal" Demo="typeof(Demos.DateTimeRange.DateTimeRangeNormal)" />

<DemoBlock Title="@Localizer["BindValueTitle"]" Introduction="@Localizer["BindValueIntro"]" Name="BindValue" Demo="typeof(Demos.DateTimeRange.DateTimeRangeBindValue)" />

<DemoBlock Title="@Localizer["MaxMinValueTitle"]" Introduction="@Localizer["MaxMinValueIntro"]" Name="MaxMinValue" Demo="typeof(Demos.DateTimeRange.DateTimeRangeMaxMinValue)" />

<DemoBlock Title="@Localizer["DisabledTitle"]" Introduction="@Localizer["DisabledIntro"]" Name="Disabled" Demo="typeof(Demos.DateTimeRange.DateTimeRangeDisabled)" />

<DemoBlock Title="@Localizer["SidebarTitle"]" Introduction="@Localizer["SidebarIntro"]" Name="Sidebar" Demo="typeof(Demos.DateTimeRange.DateTimeRangeSidebar)">
    <p>@((MarkupString)Localizer["SidebarTip"].Value)</p>
</DemoBlock>

<DemoBlock Title="@Localizer["TodayTitle"]" Introduction="@Localizer["TodayIntro"]" Name="Today" Demo="typeof(Demos.DateTimeRange.DateTimeRangeToday)">
    <p>@((MarkupString)Localizer["TodayTip"].Value)</p>
</DemoBlock>

<DemoBlock Title="@Localizer["ValidateFormTitle"]" Introduction="@Localizer["ValidateFormIntro"]" Name="ValidateForm" Demo="typeof(Demos.DateTimeRange.DateTimeRangeValidateForm)" />

<DemoBlock Title="@Localizer["AutoCloseTitle"]" Introduction="@Localizer["AutoCloseIntro"]" Name="AutoClose" Demo="typeof(Demos.DateTimeRange.DateTimeRangeAutoClose)" />

<AttributeTable Items="@GetAttributes()" />

<EventTable Items="@GetEvents()" />
